<!--20210304    zaq    创建vue文件-->
<!--20210304    zaq    实现界面-->

<template>
<!--查询收支记录-->
<!--  需要实现：按账簿、时间、支付方式、用途进行查询-->
  <div class="select">
    <el-form ref="form" :model="form" label-width="100%" >
<!--      支出/收入-->
      <el-form-item label="选择">
        <el-radio-group v-model="form.flag" >
          <el-radio label="全部" value="0">全部</el-radio>
          <el-radio label="支出" value="1" >支出</el-radio>
          <el-radio label="收入" value="2" >收入</el-radio>
        </el-radio-group>
      </el-form-item>

<!--      年份-->
      <el-select v-model="form.year" placeholder="年份"  style="width: 100px">
        <el-option
            v-for="year in Years"
            :key="year.value"
            :label="year.value"
            :value="year.value"></el-option>
      </el-select>
      <el-col class="line" :span="2">-</el-col>
<!--      月份-->
      <el-select v-model="form.month" placeholder="月份"  style="width: 100px">
        <el-option
            v-for="month in Months"
            :key="month.value"
            :label="month.value"
            :value="month.value"></el-option>
      </el-select>
<!--      支付方式-->
      <el-select v-model="form.pay" placeholder="支付方式" >
        <el-option
            v-for="pay in Pays"
            :key="pay.value"
            :label="pay.value"
            :value="pay.value"></el-option>
      </el-select>
<!--      用途-->
      <span>用途：</span>
      <el-select v-model="form.method" placeholder="用途" >
        <el-option
            v-for="method in Methods"
            :key="method.value"
            :label="method.value"
            :value="method.value"></el-option>
      </el-select>
      <el-button type="info" plain v-on:click="">查询</el-button>
    </el-form>



  </div>
</template>

<script>
export default {
  name: "Select_list",
  data(){
    return {
      form:{
        flag:'0',//支出/收入
        year:'2021',//年份
        month:'3',//月份
        pay:'',//支付方式
        method:'',//支付用途
      },
      Pays:[
        {index:'全部',value:'全部'},
        {index:'现金',value:'现金'},
        {index:'支付宝',value:'支付宝'},
      ],
      Methods:[
        {index:'全部',value:'全部'},
        {index:'水果',value:'水果'},
        {index:'服饰',value:'服饰'},
        {index:'鞋帽',value:'鞋帽'},
      ],
      Months:[
        {index:1,value:1},
        {index:2,value:2},
        {index:3,value:3},
        {index:4,value:4},
        {index:5,value:5},
        {index:6,value:6},
        {index:7,value:7},
        {index:8,value:8},
        {index:9,value:9},
        {index:10,value:10},
        {index:11,value:11},
        {index:12,value:12}
      ],
      Years:[
        {index:1,value:2017},
        {index:2,value:2018},
        {index:3,value:2019},
        {index:4,value:2020},
        {index:4,value:2021}
      ],
    }
  }
}
</script>

<style scoped>

</style>